From b2a0c1b22e1368d0425757913886566aef442be0 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 11 Aug 2005 17:11:10 +0000 Subject: [PATCH] Display sym and name in GDB. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1355 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/gdb.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gpsbabel/gdb.c b/gpsbabel/gdb.c index d17c7a5d4..7418f000d 100644 --- a/gpsbabel/gdb.c +++ b/gpsbabel/gdb.c @@ -65,6 +65,12 @@ # define GDB_UTF8_ENABLED 0 #endif +typedef enum { + GDB_DISPLAY_SYMBOL_ONLY = 0, + GDB_DISPLAY_SYMBOL_AND_NAME = 1, + GDB_DISPLAY_SYMBOL_AND_COMMENT = 2, +} gdb_display_type; + /* %%% local vars %%% */ FILE *fin, *fout; @@ -1196,8 +1202,8 @@ gdb_write_waypt(const waypoint *wpt, const int hidden) gdb_fwrite_int((wpt->garmin_data != NULL) ? wpt->garmin_data->display : 0); /* display */ gdb_fwrite_int((wpt->garmin_data != NULL) ? wpt->garmin_data->colour : 0); /* colour */ #else - gdb_fwrite_int(0); /* display */ - gdb_fwrite_int(0); /* colour */ + gdb_fwrite_int(GDB_DISPLAY_SYMBOL_AND_NAME); /* display */ + gdb_fwrite_int(0); /* colour */ #endif gdb_fwrite_icon(wpt); /* icon */ gdb_fwrite_str("", -1); /* city */ -- 2.30.2